/**
 *
 * © Bahadir Zeren 2011
 * bzeren@gmail.com
 * No warranties, express or implied, are made for this program.
 *
 */
package org.baatar.remoting.service;

/**
 * Listener class which monitors start and stop events of remote service class.
 * 
 * @author B_ZEREN
 */
public interface RemotingServiceListener {
    /**
     * Is triggered when remote service is being started.
     * 
     * @return true if operations performed on start event are successful
     * 
     * @throws Exception if an exception occurs.
     */
    public boolean OnRemotingServiceStart() throws Exception;

    /**
     * Is triggered when remote service is being stopped.
     * 
     * @throws Exception if an exception occurs.
     */
    public void OnRemotingServiceStop() throws Exception;
}
